package top.rish.utils.excel;


import top.rish.utils.common.Logger;
import top.rish.utils.excel.bean.HdmxBean;
import top.rish.utils.excel.bean.HdmxList;

import java.io.File;
import java.util.List;


public class TestRishExcel {
    private static final Logger LOGGER = Logger.getLogger();
    private static final String BASE_PATH = System.getProperty("user.dir") + "/src/main/resources/".replace("/", File.separator);
    private static final String YHYE = BASE_PATH + "银行余额.xlsx";
    private static final String JYMX = BASE_PATH + "交易明细.xlsx";
    private static final String HDMX = BASE_PATH + "回单明细.xlsx";
    private static final String PJMX = BASE_PATH + "票据明细.xlsx";

    public static void main(String[] args) throws Exception {

        /**
         * 回单明细
         */

        RishExcel rishExcel = new RishExcel(HDMX);

        List<HdmxList> list = rishExcel.read(HdmxList.class,"BODY",3);
        LOGGER.info("回单明细 list: %s", list);
        HdmxBean bean = rishExcel.read(HdmxBean.class,0,3);
        LOGGER.info("回单明细 bean: %s", bean);

    }

}
